package com.itheima.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.Dish;
import com.itheima.pojo.DishFlavor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * @author Administrator
 */

@Data
public class DishListVo{
    private String id;
    private Integer type;
    private String name;
    private String categoryId;
    private String price;
    private String code;
    private String image;
    private String description;
    private Integer status;
    private String sort;
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd ")
    private String createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private String updateTime;
    @TableField(value = "create_user")
    private String createUser;
    @TableField(value = "update_user")
    private String updateUser;
    private List<DishFlavor> flavors;
    private String categoryName;
    private String copies;




}
